<template>
    <!-- 商家申请入驻成功 -->
    <div class="container">
        <div class="banner-img">
            <el-image class="img" :src="banner">
                <div slot="placeholder" class="image-slot">
                    加载中<span class="dot">...</span>
                </div>
            </el-image>
        </div>
        <div class="content">
            <i class="icon-step"></i>
            <span class="color-gray text">资料提交成功</span>
            <span class="color-gray font-18">资料提交成功，我们会在24小时内将审核结果通知给您！</span>
            <el-button class="button" type="primary" @click="closed">关闭页面</el-button>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            banner: require('@/assets/images/rbanner.png'),
        }
    },
    methods: {
        // 关闭
        closed() {
            this.$router.push({path: '/login'})
        },
    },
    beforeRouteEnter (to, from, next) {
        document.getElementsByTagName('html')[0].style.width = '100%'
        document.getElementsByTagName('html')[0].style.height = '100%'
        document.getElementsByTagName('body')[0].style.width = '100%'
        document.getElementsByTagName('body')[0].style.height = '100%'
        document.getElementById('app').style.width = '100%'
        document.getElementById('app').style.height = '100%'
        next()
    },
    beforeRouteLeave(to, from, next) {
        document.getElementsByTagName('html')[0].style.width = 'auto'
        document.getElementsByTagName('html')[0].style.height = 'auto'
        document.getElementsByTagName('body')[0].style.width = 'auto'
        document.getElementsByTagName('body')[0].style.height = 'auto'
        document.getElementById('app').style.width = 'auto'
        document.getElementById('app').style.height = 'auto'
        next()
    },
}
</script>

<style scoped>
.color-gray {
    color: #4F5C73;
}
.font-18 {
    font-size: 18px;
}
.container {
    min-width: 1336px;
    height: 100%;
    background-color: #EEEEEE;
}
.banner-img {
    width: 100%;
    height: 390px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.banner-img>.img {
    width: 1336px;
    height: 390px;
}
.content {
    overflow: hidden;
    margin: 0 auto;
    width: 1336px;
    height: calc(100% - 390px);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.icon-step {
    margin: 60px 0 40px;
    width: 102px;
    height: 102px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url('../../../src/assets/images/iconstep.png');
}
.text {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}
.button {
    margin: 60px 0;
}
</style>